<!DOCTYPE HTML>
<html>
  <head>
    <title>投票系统</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="/stylesheets/style.css">
    <link href="http://apps.bdimg.com/libs/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet">
    <script src="http://apps.bdimg.com/libs/jquery/2.0.0/jquery.min.js"></script>
    <script src="http://apps.bdimg.com/libs/bootstrap/3.3.0/js/bootstrap.min.js"></script>

    <link href="/stylesheets/font-awesome.min.css" rel="stylesheet">
  </head>
  <body class="con-bg">

      <input type="hidden" value="<%=wx_id%>" id="wx_id"/>
      <input type="hidden" value="<%=isT%>" id="isT">

      <div class="container video-pt">
          <div class="row banner">
              <img src="/stylesheets/img/banner.jpg" alt="防艾">
          </div>
          <div class="row">
              <% for(var i=0; i<sfiles.length; i++) {%>
                  <div class="col-xs-6 col-md-3 lookinfo" data-name="<%=sfiles[i].id%>">
                      <div class="thumbnail">
                          <img src="<%=sfiles[i].get('imgsrc')%>" alt="封面"/>
                          <span class="videost"></span>
                          <div class="caption">
                              <p>
                                  <span class="pull-left"><%=sfiles[i].get('title')%></span>
                                  <span class="pull-right text-right"><%=sfiles[i].get('clicknum')%>票</span>
                              </p>
                          </div>
                      </div>
                  </div>
                <% } %>
          </div>
      </div>
    <script>
    $(function(){
      $(".lookinfo").on('click',function(){
        window.location.href="/sfileinfo?id="+$(this).attr("data-name")+"&wx_id="+$("#wx_id").val()+"&isT="+$("#isT").val();
      })
    })
    </script>
  </body>
</html>
